﻿<UserControl
	x:Class="Hip.Define_Test.TestModelView"
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:hip="clr-namespace:Hip;assembly=HipLib"
	xmlns:local="clr-namespace:Hip.Define_Test"
	mc:Ignorable="d"
	d:DesignHeight="300"
	d:DesignWidth="300">
	<UserControl.Resources>
		<!-- Don't you hate defining converters as resources? -->
		<local:AddressConverter
			x:Key="addCon" />
	</UserControl.Resources>
	<Grid>
		<StackPanel>
			<TextBlock
				x:Name="Name"
				Text="{hip:Link}"
				FontSize="{hip:Link GetTitleSize}"
				Foreground="RoyalBlue" />
			<TextBox
				Text="{hip:Link Name_Text, SetBack=SetName, UpdateSourceTrigger=PropertyChanged}" />
			
			<!-- The old-fashioned way (lame!) -->
			<TextBlock
				Text="{Binding Path=Address, Converter={StaticResource addCon}}" />
			
			<TextBlock
				Text="{hip:Link Status}"
				Opacity="0.7" />
			<CheckBox
				Content="Enable bigness"
				IsChecked="{hip:Link Bigness}" />
			<Button
				Content="Toggle Awesomeness"
				Click="ToggleAwesomeness_Button" />
		</StackPanel>
	</Grid>
</UserControl>
